-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Config for dataset health check #12906
fix: Config for dataset health check #12906
Conversation
@@ -1100,7 +1104,3 @@ class CeleryConfig: # pylint: disable=too-few-public-methods | |||
except Exception: | |||
logger.exception("Found but failed to import local superset_config") | |||
raise | |||
|
|||
# It's possible to add a dataset health check logic which is specific to your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config listed below the overwrite function won't be overwritten. Have to move it up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment block here to stop others from adding new config below this line?
# -------------------------------------------------------------------
# * WARNING: STOP EDITING HERE *
# -------------------------------------------------------------------
# Don't add config values below this line since local configs won't be
# able to override them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for that warning, we've seen issues with config values being added after overrides are loaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
@@ -704,7 +704,11 @@ def data(self) -> Dict[str, Any]: | |||
data_["fetch_values_predicate"] = self.fetch_values_predicate | |||
data_["template_params"] = self.template_params | |||
data_["is_sqllab_view"] = self.is_sqllab_view | |||
data_["health_check_message"] = self.health_check_message | |||
data_["health_check_message"] = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not return health check message, when feature is disabled but had populated health check message before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add this comment to code as well?
# Don't return previously populated health check message in case
# the health check feature is turned off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some suggestions for code comments
Codecov Report
@@ Coverage Diff @@
## master #12906 +/- ##
==========================================
- Coverage 66.97% 63.42% -3.56%
==========================================
Files 1026 490 -536
Lines 50330 30256 -20074
Branches 5242 0 -5242
==========================================
- Hits 33711 19189 -14522
+ Misses 16485 11067 -5418
+ Partials 134 0 -134
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* master: (23 commits) feat(explore): clear search on dataset change (apache#12909) chore: remove SIP-38 feature flag (apache#12894) fix: Config for dataset health check (apache#12906) fix(chart): allow null for most query object props (apache#12905) feat: add separate endpoint to fetch function names for autocomplete (apache#12840) chore: add required review on master (apache#12694) fix: comment typo (apache#12898) Migrates Radio component from Bootstrap to AntD. (apache#12738) fix: allow users to reset their passwords (apache#12886) fix(explore): missing select when groupby without metrics (apache#12890) refactor: dbapi exception mapping for dbapi's (apache#12869) feat(style-theme): add support for custom superset themes (apache#12858) chore(lint): fix pre-commit error (apache#12884) refactor(color-schemes): refactor setting of color schemes (apache#12857) feat(native-filters): Add defaultValue for Native filters modal (apache#12199) feat(release): add github token to changelog script (apache#12872) fix(menu): always show settings dropdown (apache#12877) Migrates Label component from Bootstrap to AntD. (apache#12774) [Helm] Automate datasource import (apache#10771) build: Skip loading example data from configs in CI (apache#12610) ...
SUMMARY
Found a couple issues when I tried to enable dataset health check in airbnb.
TEST PLAN
CI and manual test
ADDITIONAL INFORMATION